package com.chenyun.common.event;

import org.springframework.context.ApplicationEvent;

import java.io.Serializable;

/**
 * TokenResolveEvent：
 * Description:
 *
 * @author: Lonni
 * @date: 2023/12/13 0013 11:00
 */
public class TokenResolveEvent extends ApplicationEvent {

    /**
     * 标识是解析还是销毁
     */
    private Boolean init;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public TokenResolveEvent(Object source, Boolean re) {
        super(source);
        this.init = re;
    }

    public Boolean isInit() {
        return init;
    }
}



